package com.quanyan.stadium.biz;


import com.quanyan.stadium.entity.TbPoints;

import java.util.List;

/**
 * Created by lei.w on 16/6/23.
 */
public interface BizPointsDao {

    /**
     * 批量查询用户积分根据栏目id
     *
     * @param userIdList
     * @param categoryId
     * @return
     */
    List<TbPoints> queryUserPointsBYUserIds(List<Integer> userIdList, Integer categoryId);

    /**
     * 根据CategoryId与用户is获取积分信息
     *
     * @param uid
     * @param categoryId
     * @return
     */
    TbPoints getPointsByCategoryIdAndUserIds(Integer uid, Integer categoryId);

    /**
     * 修改用户积分信息
     *
     * @param tbPoints
     * @return
     */
    int updateUserPoints(TbPoints tbPoints);

    /**
     * 用户积分首次录入
     *
     * @param tbPoints
     * @return
     */
    int addUserPoints(TbPoints tbPoints);
}